This readme file explains the contents of the replication folder for:

Dictatorship, Higher Education, and Social Mobility

Published in Journal of Historical Political Economy

Authors:

Maria Angelica Bautista, University of Chicago
Felipe Gonzalez, Queen Mary University of London
Luis Martinez, University of Chicago
Pablo Munoz, University of Chile
Mounu Prem, Einaudi Institute for Economics and Finance

Computational Environment:

Operating System: Windows 10 
Statistical Software: Stata MP 18.0
Additional Stata packages: scheme-modern, ftools, reghdfe, parallel, parmest, outreg2, winsor2, boottest, synth_runner

Hardware: Intel(R) Xeon(R) CPU E5-2630 v4 @ 2.20GHz, 64 GB RAM
Wall-clock time given the hardware: Approx. 4 hours.

Main folders:

I. Scripts. This folder contains the scripts necessary for replication

1. "Analysis_Figures.do": It creates all figures using Stata
2. "Analysis_Tables.do": It creates all tables using Stata
3. "Data_Setup.do": It creates all the datasets necessary for the analysis. Raw data is not provided and this do-file is only for reference. Not necessary to run it.

II. Data. This folder contains all the datasets needed to replicate the paper

1. Intermediate folder contains all necessary datasets.
2. Raw folder provided only for reference and is empty.

To access the raw census microdata for 1992 and 2002 and 2017, you must make a formal request to the National Institute of Statistics (INE). Address: Morandé 801. Website: http://www.ine.gob.cl. Phone: +562 3 2461010 
To access the CASEN survey data, you can go to: https://observatorio.ministeriodesarrollosocial.gob.cl/encuesta-casen, then select "Año" (year), then select "Bases de datos" and download the corresponding Stata file. For details you can call MDS at +562 2 6751400.
To access the EOD survey data, you can go to: https://documentos.microdatos.cl/, then select "Bases de datos">"STATA">"JUNIO" and download all the files between 1957 and 2018. For details you can write to: direccion@microdatos.cl
The raw data files on voter turnout in 2017 were downloaded in 2019 from the National Electoral Service (Servel) webpage: https://servel.cl. For inquires about this data, you can call Servel at +562 2 9153265.
Additional data files used by this script are available from the authors upon request.

III. Outputs. This folder contains the folders Tables and Figures

1. Figures. This folder contains all the figures of the paper generated with the .do file "Analysis_Figures.do"
2. Tables. This folder contains all the tables of the paper generated with the .do file "Analysis_Tables.do"
